#ifndef ACCEPTCONTHREAD_H
#define ACCEPTCONTHREAD_H

#include "ThreadSDL.h"
#include "Socket.h"
#include "MutexLocker.h"

class AcceptConThread : public ThreadSDL
{
public:
	AcceptConThread();
	AcceptConThread(int port);
	virtual void Work() override;

	void SetConPort(int port);
private:
	int m_port;
	Mutex m_mutex;
};

#endif //ACCEPTCONTHREAD_H